package it.unibo.deis.lia.location;

public class NamedLocationOss extends LocationOss {
	
	private static final long serialVersionUID = 1L;
	private String name;
	
	public NamedLocationOss(String id){
		super(id);
	}
	public NamedLocationOss(String id, String value){
		super(id,value);
	}
	public NamedLocationOss(String mac,String name,String rssi){
		super(mac,rssi);
		this.name=name;
		//System.out.println("Creato NamedLocationOss: "+mac+","+name+","+rssi+".");
	}
	public void setName(String name) {
		this.name=name;
	}
	public String getName(){
		return name;
	}
	public String toString(){
		return
			"mac: "+super.getId()+" ; "
			+"name: "+name+" ; "
			+"rssi: "+super.getStringValue();
	}
}
